<h1>Editing Post</h1>
<% if @user.errors.any? %>
    <div id="errorExplanation">
        <h2><%= pluralize(@user.errors.count, 'error') %> prohibited this user from being saved</h2>
        <ul>
            <% @user.errors.full_messages.each do |e| %>
                <li><%= e %></li>
            <% end %>
        </ul>
    </div>
<% end %>
<%= form_for :user, url: user_path(@user.id), method: :patch do |f| %>
    <fieldset>
        <legend>New User</legend>
        <div class="row">
            <div class="large-4 columns">
                <%= f.label :first_name %>
                <%= f.text_field :first_name %>
            </div>
            <div class="large-8 columns">
                <%= f.label :last_name %>
                <%= f.text_field :last_name %>
            </div>
        </div>
        <div class="row">
            <div class="large-3 columns">
                <%= f.label :email_address %>
                <%= f.text_field :email_address %>
            </div>
            <div class="large-3 columns left">
                <%= f.label :password %>
                <%= f.text_field :password %>
            </div>
        </div>
        <%= f.submit 'Submit', class: "button" %>
    </fieldset>
<% end %>
<%= link_to 'Back', users_path  %>
